package com.loriot.common.xor_operation_in_an_array_1486;

/**
 * @Title: Main
 * @Package: com.loriot.common.single_number_136
 * @Description:
 * @Author: zzy boy
 * @Date: 2025/10/31 9:46
 * @Version: 0.0.1-alpha
 */

public class Main {
    class Solution {
        public int xorOperation(int n, int start) {
            int rst = 0;
            for(int i=0;i<n;i++){
                rst ^=(start+i*2);
            }
            return rst;
        }
    }
}
